/**
 * 
 */
package com.cnfangmao.right.api;

import java.util.Collection;

import com.cnfangmao.right.entity.Right;
import com.cnfangmao.right.entity.Role;


public interface RightService {
	public Collection<Right> getAllRights();
	public Collection<Role> getAllRoles();
	public Collection<Right> getAllRights4Role(Role role);
	public Collection<Right> getAllRights4Role(String strRole);
	public Right getRight(String strRight);
	public Role getRole(String strRole);
	public boolean checkRightInRole(Role role,Right right);
	public boolean checkRightInRole(String strRole,String strRight);
}
